package ctn.web.home.controller;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import ctn.contant.WebConstant;
import ctn.service.dto.CTNUserDTO;
import ctn.service.dto.UserFileConfigDTO;
import ctn.service.inteface.HomeService;

@Controller
public class HomeController {
	@Autowired
	private HomeService homeServiceImpl;
	
	@RequestMapping(value="/main/home")
	public ModelAndView home(){
		CTNUserDTO dto=new CTNUserDTO();
		
		//List<UserFileConfigDTO> dtos=homeServiceImpl.getFileMenuByUser(dto);
		ModelAndView mv=new ModelAndView("index/home");
		//mv.addObject("menus", dtos);
		return mv;
	}
	
	@RequestMapping(value="/index")
	public ModelAndView index(HttpServletRequest request,
			HttpServletResponse response){
		ModelAndView mv=new ModelAndView("index/index");
		return mv;
	}
}
